package com.franklin.ideaplugin.easytesting.constant;

import com.google.common.collect.Maps;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author Ye Junhui
 * @since 2023/6/30
 */
public interface EasyTestingHeaders extends com.franklin.ideaplugin.easytesting.common.constants.EasyTestingHeaders {

    /**
     * 系统默认请求头
     * @param defaultValue
     * @param <V>
     * @return
     */
    static <V> Map<String,V> getSystemDefaultHeaders(V defaultValue){
        Map<String,V> systemHeaders = Maps.newLinkedHashMap();
        ET_HEADERS.forEach(key -> systemHeaders.put(key,defaultValue));
        return systemHeaders;
    }
}
